const rjc = require('restify-jwt-community');

module.exports = (app, secret, excludelist) => {
    app.use(rjc({
        secret: secret,
    }).unless({
        path: excludelist
    }))
}